'use strict';
module.exports = app => {
  const { STRING, CHAR, TEXT } = app.Sequelize; // 获取数据类型
  const Roleinfo = app.modelmysql.define('roleInfo',
    {
      id: {
        type: CHAR(27),
        primaryKey: true,
      },
      name: { type: STRING },
      menus:{ type : TEXT('long')},
      RoleCode: { type: STRING },
      tid: { type: CHAR(27) },
    }
  );
  return Roleinfo;
};
